package cn.cxion.chat.app.util;

import android.content.Context;
import android.content.Intent;

import androidx.annotation.NonNull;

import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;

import cn.cxion.chat.app.activity.DialogActivity;
import cn.cxion.chat.app.bean.AppointmentInfo;
import cn.cxion.chat.kit.user.ChangeMyNameActivity;

public class DialogHelp {
    public static void showAlert(Context context,String msg) {
        MaterialDialog dialog = new MaterialDialog.Builder(context)
                .content(msg)
                .positiveText("确定")
                .onPositive(new MaterialDialog.SingleButtonCallback() {
                    @Override
                    public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                      dialog.dismiss();
                    }
                }).build();
        dialog.show();
    }
}
